package day03;

import java.util.Scanner;

public class Test_If {
    public static void main(String[] args) {
        //c语言100经典100题
        //测试BMI的值
        double weight=new Scanner(System.in).nextDouble();
        double height=new Scanner(System.in).nextDouble();
        double bmi=weight/(height*height);
        if(weight<=0||height<=0){
            System.out.println("请输入正常的身高和体重");
            return ;
        }
        if(bmi>=35){
            System.out.println("重度肥胖");
        }
        if (bmi>=30&&bmi<=35){
            System.out.println("中度肥胖");
        }
        if (bmi>=27&&bmi<=30){
            System.out.println("轻度肥胖");
        }
        if (bmi>=24&&bmi<=27){
            System.out.println("过重");
        }
        if (bmi>=18.5&&bmi<=24){
            System.out.println("正常");

        }
        if (bmi<18.5){
            System.out.println("过轻");
        }


    }
}
